package com.jltx.xq.appslimpro;

import android.app.Activity;
import android.view.View;

/**
 * @author jltxseo
 * @date 2017/04/14.
 * @description:
 */

public class ViewHelperUtils {

   public static <T extends View> T findViewById(Activity activity,int res){
        View childView = activity.findViewById(res);
        return (T)childView;
   }

    public static <T extends View> T findViewById(View view,int id){
        View childView = view.findViewById(id);
        return (T)childView;
    }
}
